package com.wwj.core.system.entity.mapper;


import com.wwj.core.system.entity.Role;

import java.util.List;
import java.util.Map;

/**
 * Created by xya on 16-10-24.
 */
public interface RoleMapper {

    Role getById(Object id);

    List<Role> select();

    List<Role> selectWithParams(Map<String, String> params);

    List<Role> selectByConditions(String sql);

    int save(Role role);

    int update(Role role);

    int delete(Integer id);

    long validateId(Integer id);

    long validateCode(String code);

    Role selectByCode(String roleUser);

    long checkRoleCode(String value);

    long checkRoleName(String value);
}
